*Table A3- Gender Gaps and Changes in the MIR Test´s Format*
clear all
use Clean_data, clear

*************************TA3.GENDERGP_FORMAT´S CHANGES****************

*Prep Periods*
{ 
gen y_15=1 if year>=2015
replace y_15=0 if year<2015

gen y_10=1 if year>=2010
replace y_10=0 if year<2010

gen y_12=1 if year>=2012
replace y_12=0 if year<2012

gen y_13=1 if year>=2013
replace y_13=0 if year<2013

gen y_94=1 if year>=1994
replace y_94=0 if year<1994

gen y_09=1 if year>=2009
replace y_09=0 if year<2009

gen y_19=1 if year>=2019
replace y_19=0 if year<2019
}

reg dropout i.year i.female##c.inv_competNOQUOTA  z_GPA y_94##female  y_09##female y_19##female y_15##female y_10##female  y_12##female y_13##female if degree=="M" & z_GPA!=. & foreign==0 , robust cformat(%9.4f) 

*Test-related*
global test_ z_answered z_test_correct  

foreach x in $test_ {
reg `x' i.year  i.female##c.inv_competNOQUOTA z_GPA y_94##female  y_09##female y_19##female y_15##female y_10##female y_12##female y_13##female  if degree=="M" & test==1 & (year<1987 | year>1988) & z_GPA!=.  & foreign==0, robust cformat(%9.4f)
}

*No Test-related*
global notest_ z_test_points z_total_points position
foreach x in $notest_ {
reg `x' i.year  i.female##c.inv_competNOQUOTA z_GPA y_94##female  y_09##female y_19##female y_15##female y_10##female y_12##female y_13##female  if degree=="M" & test==1 & z_GPA!=. & foreign==0 ,robust cformat(%9.4f)
}
